package com.example.satu.quizcreator.quiz_creator;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import java.util.List;


public class BaseFragmentPagerAdapter extends FragmentStatePagerAdapter {

private List<Fragment> fragments;

public BaseFragmentPagerAdapter(FragmentManager fm, List<Fragment> fragments)
{
    super(fm);
    this.fragments = fragments;
}

@Override
public Fragment getItem(int position) {
    return fragments.get(position);
}

@Override
public int getCount() {
    return fragments.size();
}
}
